package cool.tenyears.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @Author tenyears
 * @Description 用户表
 * @Date 2021/7/13 19:52
 */
@ApiModel(value = "cool-tenyears-domain-User")
@Data
@TableName(value = "sys_user")
public class User implements Serializable {
    /**
     * 用户编号
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "用户编号")
    private String id;

    /**
     * 登陆名称
     */
    @TableField(value = "login_user")
    @ApiModelProperty(value = "登陆名称")
    private String loginUser;

    /**
     * 用户昵称
     */
    @TableField(value = "user_name")
    @ApiModelProperty(value = "用户昵称")
    private String userName;

    /**
     * 用户密码
     */
    @TableField(value = "`password`")
    @ApiModelProperty(value = "用户密码")
    private String password;

    /**
     * 密码盐
     */
    @TableField(value = "secret")
    @ApiModelProperty(value = "密码盐")
    private String secret;

    /**
     * 性别 0女，1男，2未知
     */
    @TableField(value = "sex")
    @ApiModelProperty(value = "性别 0女，1男，2未知")
    private Integer sex;

    /**
     * 手机号码
     */
    @TableField(value = "phone_number")
    @ApiModelProperty(value = "手机号码")
    private String phoneNumber;

    /**
     * 邮箱
     */
    @TableField(value = "email")
    @ApiModelProperty(value = "邮箱")
    private String email;

    /**
     * 部门编号
     */
    @TableField(value = "dept_id")
    @ApiModelProperty(value = "部门编号")
    private Long deptId;

    /**
     * 账号状态 0正常，1停用
     */
    @TableField(value = "user_status")
    @ApiModelProperty(value = "账号状态 0正常，1停用")
    private Integer userStatus;

    /**
     * 删除标识 0正常，1删除
     */
    @TableField(value = "deleted")
    @ApiModelProperty(value = "删除标识 0正常，1删除")
    private Integer deleted;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    /**
     * 创建人
     */
    @TableField(value = "create_by")
    @ApiModelProperty(value = "创建人")
    private String createBy;

    /**
     * 修改时间
     */
    @TableField(value = "update_time")
    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;

    /**
     * 修改人
     */
    @TableField(value = "update_by")
    @ApiModelProperty(value = "修改人")
    private String updateBy;

    /**
     * 备注
     */
    @TableField(value = "remark")
    @ApiModelProperty(value = "备注")
    private String remark;

    /**
     * 版本
     */
    @TableField(value = "version")
    @ApiModelProperty(value = "版本")
    private Integer version;

    private static final long serialVersionUID = 1L;
}